﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using ManagedServices.UI.Web.Models;

namespace ManagedServices.UI.Web.Controllers
{
    [HandleError]
    public class HomeController : Controller
    {
        public ActionResult Index()
        {
            ViewData["Message"] = "Welcome to Managed Services Framework!";

            return View();
        }

        public ActionResult About()
        {
            return View();
        }

        public ActionResult AddSubService()
        {
            Utility.SetupInstallDirectory();
            return View();
        }

        public ActionResult ViewActivityLog()
        {
            ActivityLogModel[] logs =   DTOConverter.GetActivityLog();
            return View(logs);
        }

    }
}
